<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%String host = request.getRemoteHost(); %>
<%
	String username = (String)request.getAttribute("username");
	String password = (String)request.getAttribute("password");
%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>新闻发布系统</title>
<!-- 引入jquery -->
<script src="<%=request.getContextPath()%>/js/bootstrap/jquery-1.12.3.min.js"></script>
<script type="text/javascript">
	$(function(){
		$('#yes').click(function(){
			//alert("注销其他会话并登陆");
			$('#username').value="<%=username%>";
			$('#password').value="<%=password%>";
			$('#form')[0].submit();
			
		});
		
		$('#re').click(function(){
			top.location.href="manager.do";
		});
	});
	
	
</script>
</head>
<body>
您的账户在别处已经登录！
${username}

<form action="managerLogin.do?flag=1" method="post" id="form">
	<input type="hidden" name="username" id="username">
	<input type="hidden" name="password" id="password">
	<input type="button" value="注销其他会话并登陆" id="yes">
	<input type="button" value="返回登录页面" id="re">
</form>
</body>
</html>